package com.san.hkhospital.service;

import java.util.List;
import java.util.Map;

import com.san.hkhospital.entity.EmployeeExample;
import com.san.hkhospital.entity.Employee;
import com.san.hkhospital.vo.EmpTableVo;

/**
 * ClassName:EmployeeService
 * PackageName:com.san.hkhospital.service
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
public interface EmployeeService{


    long countByExample(EmployeeExample example);

    int deleteByExample(EmployeeExample example);

    int deleteByPrimaryKey(Integer empId);

    int insert(Employee record);

    int insertSelective(Employee record);

    List<Employee> selectByExample(EmployeeExample example);

    Employee selectByPrimaryKey(Integer empId);

    int updateByExampleSelective(Employee record,EmployeeExample example);

    int updateByExample(Employee record,EmployeeExample example);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);


        //员工添加方法
         boolean employeeAdd(Employee employee);
        //员工删除方法
    boolean deleteemploy(Integer empId);

    //员工状态修改
    boolean changeUstate(Integer empId, Integer stateId);
    //员工状态全部修改
    int updateemploy(Employee employee);
    //员工查询
    List<Employee> selectEmployee();

    //员工查询vo
    List<EmpTableVo> selectEmployeeVo();

    List<Employee> searchList(Map<String, String> params);
}
